import { Controller } from 'egg';

export default class HomeController extends Controller {
  public async index() {
    const { ctx } = this;
    ctx.body = await ctx.service.test.sayHi('egg');
  }
  public async token(){
    const {ctx} = this;
    const data = ctx.request.body
    ctx.body = await ctx.service.test.setToken(data);
  }
}
